﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Defero.Core;
using Defero.Core.Entities;
using Defero.Core.DomainObjects;
using Defero.Core.Repositories;

namespace Defero.Domain.Objects
{
    public class User : IUser
    {

        public readonly ISecurityRepository CommandRepository;
        public Core.Entities.User Info { get; private set; }

        public User(ISecurityRepository commandRepository) 
        {
            CommandRepository = commandRepository;
        }

        public bool IsAuthenticated
        {
            get {
                return (Info != null);
            }
        }

        public Core.Entities.Project CurrentProject
        {
            get { throw new NotImplementedException(); }
        }

        public IList<Project> Assigments
        {
            get { throw new NotImplementedException(); }
        }
        
        public bool IsInRole(ProjectRoles role)
        {
            throw new NotImplementedException();
        }

        public bool IsInRole(Project project, ProjectRoles role)
        {
            throw new NotImplementedException();
        }

    }
}
